package com.ch.dream.asynctask;

import org.json.JSONArray;

import android.content.Context;

import com.ch.dream.base.BaseRequestAsyncTask;
import com.ch.dream.common.CommonRequestUrl;
import com.ch.dream.net.MyHttpAPI;

public class SearchStoryRequestAsyncTask extends BaseRequestAsyncTask{

	private MyHttpAPI myHttpAPI = new MyHttpAPI(CommonRequestUrl.GETSTORYRECOMMEND);
	
	public SearchStoryRequestAsyncTask(Context context, RequestServerListener requestServerListener) {
		super(context, requestServerListener);
	}

	@Override
	protected Object doInBackground(Object... params) {
		JSONArray jsonArray = null;
		try{
			jsonArray = myHttpAPI.requestForJsonArray();
		}catch (Exception e) {
			e.printStackTrace();
			return jsonArray;
		}
		
		return jsonArray;
	}
}
